/*
 *   Copyright (c) 2010-2022, SIUFUNG
 */
package net.siufung.market.base.permit.mapper.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 系统角色权限表
 *
 * @author 陈建峰
 * @since 2022-07-05 16:14:50
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("sys_role_permit")
public class RolePermit implements Serializable {

    private static final long serialVersionUID = -7547405009571467737L;

    /**
     * 角色id
     */
    @TableField("role_id")
    @NotNull(message = "角色id不能为空!")
    private Integer roleId;

    /**
     * 权限id
     */
    @TableField("permit_id")
    @NotNull(message = "权限id不能为空!")
    private Integer permitId;

    /**
     * 租户id
     */
    @TableField("tenant_id")
    private Integer tenantId;


}
